package com.kming.crypto.annotation;

import com.kming.crypto.algorithm.Algorithm;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@SuppressWarnings("unused")
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
public @interface DecryptBody {
    /*
     * 解密算法类
     * */
    @AliasFor("algorithm")
    Class<? extends Algorithm> value() default Algorithm.class;

    @AliasFor("value")
    Class<? extends Algorithm> algorithm() default Algorithm.class;
}
